package ModelLayer;


/**
 * Write a description of class Rental here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Rental
{
    // instance variables - replace the example below with your own
    private int id;
    private String date;
    private String period;
    private DvD dvd;
    private Person person;
    private DVDSample sample;

    /**
     * Constructor for objects of class Rental
     */
    public Rental(int _id, String _date, String _period, DvD _dvd, Person _person)
    {
        // initialise instance variables
        id = _id;
        date = _date;
        period = _period;
        person = _person;
        dvd = _dvd;
    }

      //Get methods
    public int getId()
    {
        return id;
    }   
    
    public String getDate()
    {
        return date;
    }
    
    public String getPeriod()
    {
        return period;
    }
    
    public Person getPerson()
    {
        return person;
    }
    
    public DvD getDVD()
    {
        return dvd;
    }
    
    public DVDSample getDVDSample()
    {
        return sample;
    }
    
    //Set methods
    public void setId(int newId)
    {
        id = newId;
    }
    
    public void setDate(String newDate)
    {
        date = newDate;
    }
    
    public void setPeriod(String newPeriod)
    {
        period = newPeriod;
    }
    
    public void setPerson(Person _person)
    {
        person = _person;
    }
    public void setDVD(DvD _dvd)
    {
        dvd = _dvd;
    }
}
